/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queenb.net.entitybean;

import oracle.jdbc.OracleTypes;
import queenb.net.annotation.Mapping;
import queenb.net.datacontrol.DataControl;
import queenb.web.util.ResourcesProvider;

/**
 *
 * @author Hung.Ngo
 */
public class V450 extends DataControl<V450> implements java.io.Serializable {

    @Mapping(name = "PV450", typeMapping = OracleTypes.INTEGER)
    private int PV450;
     @Mapping(name = "FV050", typeMapping = OracleTypes.INTEGER)
    private int FV050;
    @Mapping(name = "FS400", typeMapping = OracleTypes.INTEGER)
    private int FS400;
    @Mapping(name = "VV451", typeMapping = OracleTypes.CHAR)
    private String VV451;
    @Mapping(name = "VV452", typeMapping = OracleTypes.CHAR)
    private String VV452;
    @Mapping(name = "VV453", typeMapping = OracleTypes.CHAR)
    private String VV453;
    @Mapping(name = "VV454", typeMapping = OracleTypes.CHAR)
    private String VV454;
    @Mapping(name = "SV401", typeMapping = OracleTypes.CHAR)
    private String SV401;
    @Mapping(name = "STAT", typeMapping = OracleTypes.CHAR)
    private String start;
    @Mapping(name = "VL465", typeMapping = OracleTypes.CHAR)
    private String vl465;
    private String imageNameFile;
    private String offon;
    private String onoff;

    /**
     * @return the PV450
     */
    public int getPV450() {
        return PV450;
    }

    /**
     * @param PV450 the PV450 to set
     */
    public void setPV450(int PV450) {
        this.PV450 = PV450;
    }

    /**
     * @return the FS400
     */
    public int getFS400() {
        return FS400;
    }

    /**
     * @param FS400 the FS400 to set
     */
    public void setFS400(int FS400) {
        this.FS400 = FS400;
    }

    /**
     * @return the VV451
     */
    public String getVV451() {
        return VV451;
    }

    /**
     * @param VV451 the VV451 to set
     */
    public void setVV451(String VV451) {
        this.VV451 = VV451;
    }

    /**
     * @return the VV452
     */
    public String getVV452() {
        return VV452;
    }

    /**
     * @param VV452 the VV452 to set
     */
    public void setVV452(String VV452) {
        this.VV452 = VV452;
    }

    /**
     * @return the VV453
     */
    public String getVV453() {
        return VV453;
    }

    /**
     * @param VV453 the VV453 to set
     */
    public void setVV453(String VV453) {
        this.VV453 = VV453;
    }

    /**
     * @return the VV454
     */
    public String getVV454() {
        return VV454;
    }

    /**
     * @param VV454 the VV454 to set
     */
    public void setVV454(String VV454) {
        this.VV454 = VV454;
    }

    /**
     * @return the VV401
     */
    public String getSV401() {
        return SV401;
    }

    /**
     * @param VV401 the VV401 to set
     */
    public void setSV401(String VV401) {
        this.SV401 = VV401;
    }

    /**
     * @return the start
     */
    public String getStart() {
        return start;
    }

    /**
     * @param start the start to set
     */
    public void setStart(String start) {
        this.start = start;
    }

    /**
     * @return the vl465
     */
    public String getVl465() {
        return vl465;
    }

    /**
     * @param vl465 the vl465 to set
     */
    public void setVl465(String vl465) {
        this.vl465 = vl465;
    }

    /**
     * @return the imageNameFile
     */
    public String getImageNameFile() {
         imageNameFile = ResourcesProvider.getDownloadFolder(getVV454());
       
        return imageNameFile;
    }

    /**
     * @param imageNameFile the imageNameFile to set
     */
    public void setImageNameFile(String imageNameFile) {
        this.imageNameFile = imageNameFile;
    }

    /**
     * @return the offon
     */
    public String getOffon() {
         if(getVl465()!= null){
            offon = "true";
        }else{
            offon = "false";
        }
        return offon;
    }

    /**
     * @param offon the offon to set
     */
    public void setOffon(String offon) {
        this.offon = offon;
    }

    /**
     * @return the onoff
     */
    public String getOnoff() {
         if(getVl465()!= null){
            onoff = "false";
        }else{
            onoff = "true";
        }
        return onoff;
    }

    /**
     * @param onoff the onoff to set
     */
    public void setOnoff(String onoff) {
        this.onoff = onoff;
    }

    /**
     * @return the FV050
     */
    public int getFV050() {
        return FV050;
    }

    /**
     * @param FV050 the FV050 to set
     */
    public void setFV050(int FV050) {
        this.FV050 = FV050;
    }
}
